su root #切换自root用户
# apt  autoremove -y  #删除不需要的包
# apt clean #删除缓存中的包
#下载包到缓存中
apt install -y -d net-tools telnet lrzsz wget curl
apt install -y -d docker-ce docker-ce-cli containerd.io
dpkg -i /var/cache/apt/archives/*.deb  #安装缓存中的包
systemctl enable docker.service #设置开机自启动
echo '
{
    "registry-mirrors": ["https://kfzqtrgi.mirror.aliyuncs.com"],
    "insecure-registries": ["192.168.136.110:7080"],
    "dns":["114.114.114.114"]
}
'>/etc/docker/daemon.json
systemctl start docker.service 
#安装docker-compose
curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose #加执行权限
docker-compose -version
apt  install -y -d openjdk-8-jdk #java
